//
//  YZMCombLabelView.m
//  YZMicroStock
//
//  Created by wangminhong on 16/3/29.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMCombLabelView.h"

@interface YZMCombLabelView()

@property (nonatomic, strong) UILabel *leftLB;
@property (nonatomic, strong) UILabel *rightLB;

@end

@implementation YZMCombLabelView

- (instancetype)init{
    
    self = [super initWithFrame:CGRectMake(0, 0, 1, 1)];
    if (self) {
        
        self.leftLB = [YZMAppStyle labelWithFont:[YZMAppStyle smallSizeFont] andColor:[YZMAppStyle colorForLightGrayText]];
        [self addSubview:self.leftLB];
        [self.leftLB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.bottom.equalTo(self);
        }];
        
        self.rightLB = [YZMAppStyle labelWithFont:[YZMAppStyle smallSizeBoldFont] andColor:[YZMAppStyle colorForWhite]];
        [self addSubview:self.rightLB];
        [self.rightLB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.right.equalTo(self);
            make.left.equalTo(self.leftLB.mas_right).offset(10);
        }];
    }
    
    return self;
}

@end
